﻿namespace EasyDDD.AdminModule.Application.IntegrationEventsHandler
{
    internal class SysMenuUpdatedIntegrationEventHandler(
        //IMediator mediator, 
        ILogger<SysMenuUpdatedIntegrationEventHandler> logger)
        : IIntegrationEventHandler<SysMenuUpdatedIntegrationEvent>
    {
        [CapSubscribe(nameof(SysMenuUpdatedIntegrationEvent))]
        public Task Handle(SysMenuUpdatedIntegrationEvent @event, CancellationToken cancellationToken = default)
        {
            logger.LogInformation("集成事件 SysMenuUpdatedIntegrationEventHandler：{}", @event.MenuId);
            return Task.CompletedTask;
        }
    }
}
